package com.lanmao.blog.mapper;

import com.lanmao.blog.entity.Views;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lanmao.blog.vo.WeekViews;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lanmao
 * @since 2022-03-28
 */
public interface ViewsMapper extends BaseMapper<Views> {

    List<WeekViews> getByWeek();


    WeekViews getTodayViews(@Param("date") String date);

    String listofViews();

}
